{% load staticfiles %}

{% load tags %}

<!doctype html>
<head>
	<meta charset="utf-8">

	<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">

	<title>{% block title %}DAMN{% endblock %}</title>
	<meta name="description" content="">
	<meta name="author" content="">

  <link rel="stylesheet" href="http://twitter.github.com/bootstrap/1.4.0/bootstrap.min.css">
  <link rel="stylesheet" href="{% static "style.css" %}">
	
	<script type="text/javascript" src="{% static "jquery.min.js" %}"></script>
  
  <script type="text/javascript" src="http://twitter.github.com/bootstrap/1.4.0/bootstrap-dropdown.js"></script>
  <script type="text/javascript" src="http://twitter.github.com/bootstrap/1.4.0/bootstrap-tabs.js"></script>
  
	<script type="text/javascript" src="{% static "scripts.js" %}"></script>
  
  

  {% block head %}{% endblock %}
</head>

<body>
  
<div class="topbar">
    <div class="fill">
      <div class="container">
        
        <a class="brand" href="/">
            <img src="{% static "images/logo.png" %}"  height="35px" />
        </a>

        <ul class="nav">
          <li class="{% active request 'assets.files_upload.upload' %}"><a href="{% url 'assets.files_upload.upload' %}">Contribute</a></li>
          
          <li class="{% active request 'webgui.views.search' %}"><a href="{% url 'webgui.views.search' %}">Search</a></li>
          <li><a href="/collections/">Collections</a></li>
					<li><a href="/feeds/assets/">Feed</a></li>
					
          
        </ul>
        
        
        {% if user.is_authenticated %}
          <ul class="nav secondary-nav">
            <li class="dropdown" data-dropdown="dropdown">
              <a href="#" class="dropdown-toggle">Profile</a>
              <ul class="dropdown-menu">
                <li><a href="{% url 'profiles.views.profile' user_id=user.id %}">My profile</a></li>
                <li><a href="#">My collections</a></li>
                {% if user.is_staff %}
                <li class="divider"></li>
                <li><a href="{% url 'admin:index' %}">Admin</a></li>
                {% endif %}
                <li class="divider"></li>
                <li><a href="{% url 'django.contrib.auth.views.logout' %}">Log out</a></li>
              </ul>
            </li>
          </ul>
        {% else %}
          <form method="post" action="{% url 'django.contrib.auth.views.login' %}" class="pull-right">
            {% csrf_token %}
            <input name="username" class="input-small" type="text" placeholder="Username">

            <input name="password" class="input-small" type="password" placeholder="Password">
            <button class="btn" type="submit">Sign in</button>
            <a href="{% url 'registration_register' %}">Or register</a>
          </form>
        {% endif %}
          
      </div>
    </div>
  </div>


<div class="container">

  <div class="content">
    
    <div class="row">
      {% block content %}
        <div class="span4">
          {% block left %}{% endblock %}
        </div>
        <div class="span12">
          {% block right %}{% endblock %}
        </div>
      {% endblock %}
    </div>
    {% block content.bottom %}
    {% endblock %}
    
  </div> <!-- /content -->

  <footer>
    <p>&copy; DAMN 2011</p>

  </footer>

</div> <!-- /container -->


</body>
</html>
